package advanced.network.demo;

import java.io.Closeable;
import java.io.IOException;

public class Utils {
    public static void release(Closeable... tartges) {
        for (Closeable tartge : tartges) {
            if (tartge != null) {
                try {
                    tartge.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
    }
}
